partitioning 您所在的位置:网站首页 disk space partitioning

partitioning

2023-08-18 00:25| 来源: 网络整理| 查看: 265

Is the computer a modern one using Secure Boot (UEFI)? If so, you might need to create a GPT partition table (instead of an MDOS one) on the USB device. You can use GParted to do that — beware! doing this will instantly erase all data on the drive, so be very sure that you've chosen your USB and not your computer's drive. But if your computer doesn't use Secure Boot, don't worry about this.

I don't know the purpose of the 4Gb FAT partition in the tutorial. Maybe it's spare space to be able to port files to a different computer.

So, I suggest the following.

If your computer uses Secure Boot, you'll need a small FAT32 partition. Size 500Mb is about right. Tell the installer to use this for its EFI System Partition. (If your computer doesn't use Secure Boot, skip this partition altogether.)

If you need Windows to access some files, create a partition for transferring the files. Instead of FAT32, I suggest NTFS. Make it only as large as you'll need for transferring files; it doesn't have to be 4Gb if you don't need that. Tell the installer not to use this partition. (If you don't need to share with Windows, skip this partition altogether.)

For the Linux system, use all of the remaining space and format it to ext4. Tell the installer to use this as the root partition.

Don't create a swap partition. Ubuntu 20.04 uses a swap file by default, though you probably want to avoid using swap on a USB stick — it will slow your system to a crawl.

EDIT: The tutorial doesn't mention that you must change the target bootloader installation (compare steps 6 and 7 (Phase 2) at the bottom of each image). Please remember to do this, otherwise your USB won't boot on a different machine, and you could have problems on your machine when the USB isn't plugged in.

EDIT: To change the target bootloader.

In the guide, scroll down to Phase 2, step 6. Look at the bottom of the image, where it says, "Device for boot loader installation". Notice that it shows /dev/sda. Compare that to the image in Phase 2, step 7. There, it shows /dev/sdb. This should have been mentioned in the guide, but wasn't. You must set this to whatever your USB device is, otherwise it'll overwrite the bootloader on your internal disk — you don't want that to happen! Be aware that this is the device (e.g. /dev/sdb) and not a partition (e.g. /dev/sdb2).


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有